home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr49 / 273_01.zip / CLRAREA.CC < prev    next >
Text File  |  1993-04-04  |  542b  |  21 lines

  1. #include <dos.h>
  2. void clrarea(int trow,int tcol,int lrow,int lcol,int wattr)
  3. /* Clear a portion of the screen using the passed attribute
  4.     trow = upper left row of area
  5.     tcol = upper left col of area
  6.     lrow = lower right row of area
  7.     lcol = lower right col of area
  8. */
  9. {
  10.    union REGS inregs;
  11.  
  12.    inregs.h.bh = wattr;
  13.    inregs.h.cl = tcol;
  14.    inregs.h.ch = trow;
  15.    inregs.h.dl = lcol;
  16.    inregs.h.dh = lrow;
  17.    inregs.h.al = 0;
  18.    inregs.h.ah = 6;                     /* do the scroll */
  19.    int86(0x10,&inregs,&inregs);
  20. }
  21.